<template>
    <div class="wx-audio-default" role="application" aria-label="音频播放器">
        <div class="wx-audio-left" role="button" aria-label="播放" :style="{backgroundImage: 'url('+audio_poster+')'}">
            <div class="wx-audio-button play"></div>
        </div>
        <div class="wx-audio-right">
            <div class="wx-audio-time" parse-text-content="">00:00</div>
            <div class="wx-audio-info">
                <div class="wx-audio-name" parse-text-content="">{{audio_name}}</div>
                <div class="wx-audio-author" parse-text-content="">{{audio_author}}</div>
            </div>
        </div>
    </div>
</template>

<script>
    export default {
        name: '',
        data() {
            return {

            }
        },
        props: {
            audio_poster: String,
            audio_name: String,
            audio_author: String,
            src: String,
        },
        methods: {

        },
        components: {

        }
    }
</script>

<style lang="scss">
    .wx-audio-default {
        max-width: 100%;
        min-width: 302px;
        height: 65px;
        background: #fcfcfc;
        border: 1px solid #e0e0e0;
        border-radius: 2.5px;
        display: inline-block;
        overflow: hidden;

        .wx-audio-left {
            width: 65px;
            height: 65px;
            float: left;
            background-color: #e6e6e6;
            background-size: 100% 100%;
            background-position: 50% 50%;

            .wx-audio-button.play {
                background-image: url();
            }

            .wx-audio-button.pause {
                background-image: url();
            }

            .wx-audio-button {
                width: 24px;
                height: 24px;
                margin: 20.5px;
                background-size: cover;
            }
        }

        .wx-audio-right {
            box-sizing: border-box;
            height: 65px;
            margin-left: 65px;
            padding: 11px 16.5px 13.5px 15px;
            overflow: hidden;

            .wx-audio-time {
                margin-top: 3.5px;
                height: 16.5px;
                font-size: 12px;
                color: #888888;
                float: right;
            }

            .wx-audio-info {
                margin-right: 70px;
                overflow: hidden;

                .wx-audio-name {
                    height: 22.5px;
                    line-height: 22.5px;
                    margin-bottom: 3.5px;
                    font-size: 14px;
                    color: #353535;
                    overflow: hidden;
                    white-space: nowrap;
                    text-overflow: ellipsis;
                }

                .wx-audio-author {
                    height: 14.5px;
                    line-height: 14.5px;
                    font-size: 12px;
                    color: #888888;
                    overflow: hidden;
                    white-space: nowrap;
                    text-overflow: ellipsis;
                }
            }
        }
    }
</style>